/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.suai.system.impl;

import java.util.List;
import org.suai.system.PackageGenerator;
import org.suai.system.QueueSystem;

/**
 *
 * @author Roman
 */
public class PackageGeneratorSingle implements PackageGenerator {
    private QueueSystem systems;

    @Override
    public void initialSystems(List systems) {
        this.systems = (QueueSystem)systems.get(0);
    }

    @Override
    public void generatePackages() {
        systems.generatePackages();
        systems.setOuterPackages( systems.getPackagesForService() );
    }

    @Override
    public void servicePackages() {
        systems.servicePackages();
    }

}
